home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / dsp / dspgroup / asms.arc / SINTBL.C < prev    next >
Encoding:
C/C++ Source or Header  |  1987-08-16  |  234 b   |  17 lines

  1. #include <stdio.h>
  2. #include <math.h>
  3.  
  4. main(argc,argv)
  5. int argc;
  6. char *argv[];
  7. {
  8.     double x,y;
  9.     int i,j;
  10.     y=2.0*atan(1.0)/64.0/64.0;
  11.     for (i=0;i<64;i++)
  12.     {    j=32767.0*cos((double)i*y);
  13.         printf("   dw  %6d,\n",j);
  14.     }
  15. }
  16.     
  17.